package com.dferreira.languagesteach.custom_items;

import android.graphics.drawable.Drawable;

/**
 * Provides label,image and a tag Used by dataSource on getView from rows
 *
 * @author dferreira
 */
public class UITableViewCell {
    private String textLabel;
    private Drawable imageView;
    private Integer progress;
    private String tag;

    /**
     * ************************************
     */
    public String getTextLabel() {
        return textLabel;
    }

    /**
     * ************************************
     */
    public void setTextLabel(String textLabel) {
        this.textLabel = textLabel;
    }

    /**
     * ************************************
     */
    public Drawable getImageView() {
        return imageView;
    }

    /**
     * ************************************
     */
    public boolean setImageView(String imagePath) {
        imageView = Drawable.createFromPath(imagePath);
        return imageView != null;
    }

    /**
     * ************************************
     */
    public Integer getProgress() {
        return progress;
    }

    /**
     * ************************************
     */
    public void setProgress(Integer progress) {
        this.progress = progress;
    }

    /**
     * ************************************
     */
    public String getTag() {
        return tag;
    }

    /**
     * ************************************
     */
    public void setTag(String tag) {
        this.tag = tag;
    }
}
